package com.coolw.design.pattern.behavior.liabilitychain.handler.impl;

import com.coolw.design.pattern.behavior.liabilitychain.dto.OrderCheckParam;
import com.coolw.design.pattern.behavior.liabilitychain.handler.AbstractOrderCheckHandler;
import org.dromara.hutool.core.lang.Assert;

/**
 * 订单ID检查类
 *
 * @author coolw
 * @date 2024/10/22 19:33
 */
public class OrderIdCheckHandler extends AbstractOrderCheckHandler {

    @Override
    public void doCheck(OrderCheckParam orderCheckParam) {
        Assert.notBlank(orderCheckParam.getOrderId(), "订单ID不能为空");
    }
}
